<%@page import="com.wed.db.ConnectDB"%>
<%@page import="com.wed.db.HinhAnh"%>
<%@page import="com.wed.db.SanPham"%>
<%@page import="java.util.ArrayList"%>
<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="${pageContext.request.contextPath}/Style.css" type="text/css" charset="utf-8" />	
<title>Insert title here</title>
</head>
<body>
<%ArrayList<HinhAnh>ha = new ConnectDB().getImageByID(Integer.parseInt(request.getParameter("MaSach"))); %>
<% SanPham sp = new ConnectDB().getProductByID(Integer.parseInt(request.getParameter("MaSach"))); %>
<div id="contents">
				<div id="shop">
			<h3><%=sp.getTenSach() %></h3>
			<h1><%=sp.getMaSach() %></h1>
                           <%
				 for(HinhAnh h : ha){
					
				 
				%>
                                   
					<ul class="items">
						<li>
							<span><img src="images/<%=h.getHinhAnh()%>" alt="shirt" height="100%"width="100%"/></span>
							
						</li>
					
					</ul>
					    <% 
					}
					 %>  
				</div>
			</div> <!-- /#contents -->
</body>
</html>